Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Wed, 17 May 2023 07:45:36 +0000 (08:45 +0100)
committerEmmanuel Bourg <ebourg@apache.org>
Wed, 17 May 2023 07:45:36 +0000 (08:45 +0100)
commit87e96ee78d241dd5f8483ec363b7578263652641
tree3f9b6e38065e94106b317ef835cd9bc9e1b30110
parent513300e44693355ceb15766c30bc8a2f519d271d
Fix incompatibility between <stdatomic.h> and <atomic>

Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932
Bug: https://reviews.llvm.org/D45470

This 2 headers combined will cause errors for both GCC and Clang. This patch
makes sure only one of them is present at any time.

Gbp-Pq: Topic system/core
Gbp-Pq: Name stdatomic.patch
system/core/libcutils/include/cutils/atomic.h
system/core/libcutils/include/cutils/trace.h
system/core/liblog/logger.h